package com.naodong.shenluntiku.mvp.model.error;

/**
 * Created by hujie on 17/5/8.
 */

public class HttpException extends Error {


    private final int code;
    private final ApiError apiError;

    public HttpException(int code, ApiError apiError) {
        super();
        this.code = code;
        this.apiError = apiError;
    }


    /** HTTP status code. */
    public int code() {
        return code;
    }


    public ApiError getApiError() {
        return apiError;
    }
}
